<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

    <meta charset="utf-8">
    <title>医院信息</title>
    <%
        /********** 保存网站的基本路径 ***********/
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
                + path + "/";
        //将该路径地址缓存到 session中 ,例如：http://localhost:8090/tjnu_ssh_1128/
        session.setAttribute("mybasePath", basePath);
    %>
    <meta name="renderer" content="webkit">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${mybasePath}assets/layui/css/layui.css"  media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body style="height: 80%; width: 80%; margin-left:auto">
<form class="layui-form" id="hosForm"
      action="/ssm_pro/addhos" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">医院名称</label>
        <div class="layui-input-inline">
            <input type="text" name="hospitalName"  autocomplete="off" placeholder="请输入名称" class="layui-input">
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">医院网址</label>
            <div class="layui-input-inline">
                <input type="tel" name="hospitalUrl" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">医院照片</label>
        <div class="layui-input-inline">
            <input type="text" name="hospitalImg"  placeholder="请输入照片网址" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">医院地址</label>
            <div class="layui-input-inline">
                <input type="tel" name="hospitalAddress"  autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">医院地区</label>
            <div class="layui-input-inline">
                <input type="tel" name="hospitalArea"  autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">医院类型</label>
            <div class="layui-input-inline">
                <input type="text" name="hospitalNature"  autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">医院等级</label>
            <div class="layui-input-inline">
                <input type="text" name="hospitalGrade"  autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">院长姓名</label>
            <div class="layui-input-inline">
                <input type="text" name="hospitalDeanName"  autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">是否医保</label>
            <div class="layui-input-inline">
                <select name="modules" lay-verify="required" lay-search="">

                    <option value="1">医保</option>
                    <option value="2">非医</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">建院年份</label>
            <div class="layui-input-inline">
                <input type="tel" name="hospitalYear"  autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">医院简介</label>
        <div class="layui-input-block">
            <textarea name="hospitalAbout"placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">医院荣誉</label>
        <div class="layui-input-block">
            <textarea name="hospitalHonor"placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">医院设备</label>
        <div class="layui-input-block">
            <textarea name="hospitalEquipment"placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script src="${mybasePath}assets/layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述 JS 路径需要改成你本地的 -->
<script>
    layui.use(['form'], function(){
        var form = layui.form






        // //监听指定开关
        // form.on('switch(switchTest)', function(data){
        //     layer.msg('开关checked：'+ (this.checked ? 'true' : 'false'), {
        //         offset: '6px'
        //     });
        //     layer.tips('温馨提示：请注意开关状态的文字可以随意定义，而不仅仅是ON|OFF', data.othis)
        // });
        //
        // //监听提交
        // form.on('submit(demo1)', function(data){
        //     layer.alert(JSON.stringify(data.field), {
        //         title: '最终的提交信息'
        //     })
        //     return false;
        // });



    });
</script>

</bodymargin-left:auto>
</html>